#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
	int n;
	scanf("%d", &n);
	long oddCounts = 0, evenCounts = 0;
	for (int i = 0; i < n; i++)
	{
		int temp;
		scanf("%d", &temp);
		if (temp % 2 == 0)
			evenCounts++;
		else
			oddCounts++;
	}
	printf("%d %d", oddCounts, evenCounts);
	system("PAUSE");
	return 0;
}